/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.sync.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 手术史Entity
 * @author xueyx
 * @version 2017-11-20
 */
public class HfOperationRec extends DataEntity<HfOperationRec> {
	
	private static final long serialVersionUID = 1L;
	private String baseInfo;		// 用户id
	private Date date;		// 手术日期
    private String dateStr;		// 手术日期
	private String describes;		// 描述
	private String hospital;		// 医院
	private String operName;		// 手术名称
	private String operDoctor;		// 医生名称
	private String operCode;		// 手术code
	private String operGrade;		// 手术级别代码
    private String operGradeStr;		// 手术级别代码
	private String inciHealingGrade;		// 手术切口愈合等级代码
    private String inciHealingGradeStr;
	private String healingCategory;		// 手术切口类别代码
	private String anaeCode;		// 麻醉方法代码
    private String anaeCodeStr;
	private String healingPart;		// 手术目标部位名称
	private String clinicId;		// 门诊ID
	private String visitId;		// 住院ID
	private String helper1;		// 助手1
	private String helper2;		// 助手2
	private String anaeDoctor;		// 麻醉医生
	
	public HfOperationRec() {
		super();
	}

	public HfOperationRec(String id){
		super(id);
	}

	@Length(min=0, max=64, message="用户id长度必须介于 0 和 64 之间")
	public String getBaseInfo() {
		return baseInfo;
	}

	public void setBaseInfo(String baseInfo) {
		this.baseInfo = baseInfo;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	@Length(min=0, max=255, message="描述长度必须介于 0 和 255 之间")
	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}
	
	@Length(min=0, max=50, message="医院长度必须介于 0 和 50 之间")
	public String getHospital() {
		return hospital;
	}

	public void setHospital(String hospital) {
		this.hospital = hospital;
	}
	
	@Length(min=0, max=50, message="手术名称长度必须介于 0 和 50 之间")
	public String getOperName() {
		return operName;
	}

	public void setOperName(String operName) {
		this.operName = operName;
	}
	
	@Length(min=0, max=255, message="医生名称长度必须介于 0 和 255 之间")
	public String getOperDoctor() {
		return operDoctor;
	}

	public void setOperDoctor(String operDoctor) {
		this.operDoctor = operDoctor;
	}
	
	@Length(min=0, max=64, message="手术code长度必须介于 0 和 64 之间")
	public String getOperCode() {
		return operCode;
	}

	public void setOperCode(String operCode) {
		this.operCode = operCode;
	}
	
	@Length(min=0, max=2, message="手术级别代码长度必须介于 0 和 2 之间")
	public String getOperGrade() {
		return operGrade;
	}

	public void setOperGrade(String operGrade) {
		this.operGrade = operGrade;
	}
	
	@Length(min=0, max=2, message="手术切口愈合等级代码长度必须介于 0 和 2 之间")
	public String getInciHealingGrade() {
		return inciHealingGrade;
	}

	public void setInciHealingGrade(String inciHealingGrade) {
		this.inciHealingGrade = inciHealingGrade;
	}
	
	@Length(min=0, max=2, message="手术切口类别代码长度必须介于 0 和 2 之间")
	public String getHealingCategory() {
		return healingCategory;
	}

	public void setHealingCategory(String healingCategory) {
		this.healingCategory = healingCategory;
	}
	
	@Length(min=0, max=2, message="麻醉方法代码长度必须介于 0 和 2 之间")
	public String getAnaeCode() {
		return anaeCode;
	}

	public void setAnaeCode(String anaeCode) {
		this.anaeCode = anaeCode;
	}
	
	@Length(min=0, max=17, message="手术目标部位名称长度必须介于 0 和 17 之间")
	public String getHealingPart() {
		return healingPart;
	}

	public void setHealingPart(String healingPart) {
		this.healingPart = healingPart;
	}
	
	@Length(min=0, max=64, message="门诊ID长度必须介于 0 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@Length(min=0, max=64, message="住院ID长度必须介于 0 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}
	
	@Length(min=0, max=20, message="助手1长度必须介于 0 和 20 之间")
	public String getHelper1() {
		return helper1;
	}

	public void setHelper1(String helper1) {
		this.helper1 = helper1;
	}
	
	@Length(min=0, max=20, message="助手2长度必须介于 0 和 20 之间")
	public String getHelper2() {
		return helper2;
	}

	public void setHelper2(String helper2) {
		this.helper2 = helper2;
	}
	
	@Length(min=0, max=20, message="麻醉医生长度必须介于 0 和 20 之间")
	public String getAnaeDoctor() {
		return anaeDoctor;
	}

	public void setAnaeDoctor(String anaeDoctor) {
		this.anaeDoctor = anaeDoctor;
	}

    public String getInciHealingGradeStr() {
        return inciHealingGradeStr;
    }

    public void setInciHealingGradeStr(String inciHealingGradeStr) {
        this.inciHealingGradeStr = inciHealingGradeStr;
    }

    public String getAnaeCodeStr() {
        return anaeCodeStr;
    }

    public void setAnaeCodeStr(String anaeCodeStr) {
        this.anaeCodeStr = anaeCodeStr;
    }

    public String getOperGradeStr() {
        return operGradeStr;
    }

    public void setOperGradeStr(String operGradeStr) {
        this.operGradeStr = operGradeStr;
    }

    public String getDateStr() {
        return dateStr;
    }

    public void setDateStr(String dateStr) {
        this.dateStr = dateStr;
    }
}